setImage: function(image) {
if (this._imageBin)
this.unsetImage();
+ if (!image)
+ return;
this._imageBin = new St.Bin();
this._imageBin.child = image;
this._imageBin.opacity = 230;
clear: true });
// We only display a large image if an icon is also specified.
+ let image = null;
if (icon && (hints['image-data'] || hints['image-path'])) {
- let image = null;
if (hints['image-data']) {
let [width, height, rowStride, hasAlpha,
bitsPerSample, nChannels, data] = hints['image-data'];
notification.IMAGE_SIZE,
notification.IMAGE_SIZE);
}
- notification.setImage(image);
- } else {
- notification.unsetImage();
}
+ notification.setImage(image);
if (actions.length) {
notification.setUseActionIcons(hints['action-icons'] == true);